package com.qf.mapper;

import com.qf.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author ztf
 * @Date 15:51 2022/1/10
 **/
public interface SysRoleMapper {
    /**
     * 查询所有权限
     * @return
     */
    @Select("select * from sys_role")
    List<SysRole> selectAllRole();

    /**
     * 根据id逻辑删除角色
     * @param roleIds
     */
    void deleteByIds(@Param("roleIds") List<Integer> roleIds);

}
